package com.wsj.service.impl;

import java.util.List;

import com.wsj.dao.IHomeSiteCommendCompanyDao;
import com.wsj.service.IHomeSiteCommendCompanyServ;
import com.wsj.util.exception.BusinessException;
import com.wsj.util.page.PageResultSet;
import com.wsj.web.vo.homeSite.HomeSiteCommendCompany;

public class HomeSiteCommendCompanyServImpl implements
		IHomeSiteCommendCompanyServ {

	private IHomeSiteCommendCompanyDao homeSiteCommendCompanyDao;
	public void del(HomeSiteCommendCompany homeSiteCommendCompany)
			throws BusinessException {
			this.homeSiteCommendCompanyDao.del(homeSiteCommendCompany);
	}

	public HomeSiteCommendCompany loadById(Integer id) throws BusinessException {
		return this.homeSiteCommendCompanyDao.loadById(id);
	}

	public List<HomeSiteCommendCompany> loadList(String comName,
			String comType, Short isHot, Short isCommend, Short isPic,String bmCommendCompanySiteStr, Integer top)
			throws BusinessException {
		return this.homeSiteCommendCompanyDao.loadList(comName, comType, isHot, isCommend, isPic,bmCommendCompanySiteStr,top);
	}

	public PageResultSet loadPage(String comName, String comType, Short isHot,
			Short isCommend, Short isPic, String bmCommendCompanySiteStr, Integer page, Integer pageSize)
			throws BusinessException {
		return this.homeSiteCommendCompanyDao.loadPage(comName, comType, isHot, isCommend, isPic,bmCommendCompanySiteStr, page, pageSize);
	}

	public void saveOrUpdate(HomeSiteCommendCompany homeSiteCommendCompany)
			throws BusinessException {
			this.homeSiteCommendCompanyDao.saveOrUpdate(homeSiteCommendCompany);
	}

	public IHomeSiteCommendCompanyDao getHomeSiteCommendCompanyDao() {
		return homeSiteCommendCompanyDao;
	}

	public void setHomeSiteCommendCompanyDao(
			IHomeSiteCommendCompanyDao homeSiteCommendCompanyDao) {
		this.homeSiteCommendCompanyDao = homeSiteCommendCompanyDao;
	}


}
